package com.bjh.service;

import java.util.List;
import java.util.Map;

public interface SaleService {
    /**
     * 通过代理商id获取销售人员
     * @param params 相关参数
     * @return {@link List}
     * @throws Exception Exception
     */
    List<?> getSaleByAgentId (Map<String, Object> params) throws Exception;

    /**
     * 通过代理商id分页获取销售人员
     * @param params 相关参数
     * @return {@link List}
     * @throws Exception Exception
     */
    Map<String, Object> getSaleOfPageByAgentId (Map<String, Object> params) throws Exception;

    /**
     * 根据id查询销售人员详情
     * @param id 销售人员id
     * @return {@link Map}
     * @throws Exception Exception
     */
    Map<String, Object> getSaleById (Long id) throws Exception;

    /**
     * 编辑销售人员
     * @param params 相关参数
     * @throws Exception Exception
     */
    void editSale (Map<String, Object> params) throws Exception;
}
